package com.atguigu.gulimall.order;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * RabbitTemplate
 * AmqpAdmin
 * CachingConnectionFactory
 * RabbitMessagingTemplate
 */
@EnableAspectJAutoProxy(exposeProxy = true) // 开启AspectJ动态代理 exposeProxy = true ，暴露代理对象
@EnableFeignClients // 开启远程调用
@EnableRedisHttpSession
@EnableDiscoveryClient
@EnableRabbit // 开启rabbit
@SpringBootApplication
public class OrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
    }

}